package com.webside.points.model;

import java.util.Date;

import com.webside.points.wechat.DateUtil;

public class PostTypeEntity {

	/*
	 * ID
	 */
	private int id;
	/*
	 * 文章类型标题
	 */
	private String name;
	/*
	 * 状态
	 */
	private String status;
	/*
	 * 创建时间
	 */
	private Date createTime;
	/*
	 * 学习人数
	 */
	private int browseNumber;
	/*
	 * 课程说明
	 */
	private String describe;
	
	private String rank;
	/*
	 * 当前页
	 */
	private int curPage;
	/*
	 * 格式化创建时间
	 */
	private String createDateFormat;
	/*
	 * 课程图片
	 */
	private String image;
	/*
	 * 课程简介
	 */
	private String intro;
	/*
	 * 课程价格
	 */
	private Double price;
	
	

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getCreateDateFormat() {
		return createDateFormat;
	}

	public void setCreateDateFormat(String createDateFormat) {
		this.createDateFormat = createDateFormat;
	}

	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}

	

	public int getCurPage() {
		return curPage;
	}

	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
		this.createDateFormat = DateUtil.dateFormat(createTime);
	}

	public int getBrowseNumber() {
		return browseNumber;
	}

	public void setBrowseNumber(int browseNumber) {
		this.browseNumber = browseNumber;
	}

	@Override
	public String toString() {
		return "PostTypeEntity [id=" + id + ", name=" + name + ", status=" + status + ", createTime=" + createTime
				+ ", browseNumber=" + browseNumber + ", describe=" + describe + ", rank=" + rank + ", curPage="
				+ curPage + "]";
	}

	

	
	
	
	
	
}
